<template>
  <div>
    <v-tableTitle
        :btnConfig="btnConfig"
        title="库容预警分析"></v-tableTitle>
    <GTable :otherHeight="0" :tableSettingVisible="false" :columnSource="columnSource" :data="tableData">
    </GTable>
  </div>
</template>

<script>
import baseMixin from "@/mixins/BaseMixin";
import tableTitle from "commons/TableTitle";

export default {
  name:"optimize",
  mixins: [baseMixin],
  data() {
    return {
      columnSource:[
        {code:"code1",name:"库区编号"},
        {code:"code2",name:"当前库位总量"},
        {code:"code3",name:"当前占用数量"},
        {code:"code4",name:"当前闲置数量"},
        {code:"code5",name:"预计入库量"},
        {code:"code6",name:"预计出库量"},
        {code:"code7",name:"状态"},
        {code:"code8",name:"差异数量"},
      ],
      tableData:[
        {code1:"FDSH47573",code2:"材料1",code3:"RT7678875",code4:"标准移动",code5:"T98539459",code6:"供应商1",code7:"库位不足",code8:"28",code9:"移动中"},
        {code1:"FDSH47573",code2:"材料2",code3:"RT7678875",code4:"整库移动",code5:"T98539459",code6:"供应商21",code7:"库位盈余",code8:"28",code9:"已完成"},
        {code1:"FDSH47573",code2:"材料3",code3:"RT7678875",code4:"LPN移动",code5:"T98539459",code6:"供应商8",code7:"库位盈余",code8:"28",code9:"待移动"},
        {code1:"FDSH47573",code2:"材料1",code3:"RT7678875",code4:"标准移动",code5:"T98539459",code6:"供应商1",code7:"库位不足",code8:"28",code9:"移动中"},
        {code1:"FDSH47573",code2:"材料2",code3:"RT7678875",code4:"整库移动",code5:"T98539459",code6:"供应商21",code7:"库位不足",code8:"28",code9:"已完成"},
        {code1:"FDSH47573",code2:"材料3",code3:"RT7678875",code4:"LPN移动",code5:"T98539459",code6:"供应商8",code7:"库位不足",code8:"28",code9:"待移动"},
      ],
    };
  },
  computed: {
    btnConfig() {
      return [
         { label: "入库导入", certigier: !this.btnPermNameList.includes('WM06020801'), invalid: "create"},
          { label: "出库导入", certigier: !this.btnPermNameList.includes('WM06020801'), invalid: "download"},
      ];
    }
  },
  mounted() {
  },
  methods: {
  },
  components: {
    "v-tableTitle": tableTitle,
  }
};
</script>

<style></style>

